#include <iostream>
#include"CoreArray.h"
using namespace std;

static void show(CoreArray* ca, bool debug) {
	int height = ca->getHeight();
	int width = ca->getWidth();
	int* arr = ca->getStart();
	for (int y = 0; y < height; y++) {
		cout << "|";
		for (int x = 0; x < width; x++) {
			int num = *(arr + width * y + x);
			cout << (num > 999 ? " " : "  ") << num;
			if (debug) {
				int* nx = (arr + width * y + x);
				cout << " -" << nx << "- ";
			}
			cout << (num > 999 ? " |" : num > 99 ? " |" : num > 9 ? "  |" : "   |");
		}
		cout << endl;
	}
}